package Utilitats;

import java.util.ArrayList;
import java.util.List;

public class TrozearMascaraHoras {

	public static List<String[]> separarHores(String mascaraHores){
		
		List<String> arrPrimeraDivisio = new ArrayList<String>();
		List<String[]> arrFinal = new ArrayList<String[]>();
		
		String[] splitted = mascaraHores.split("_");
		for(int i = 0 ; i < splitted.length ; i++)
			arrPrimeraDivisio.add(splitted[i]);
		
		 
		for(int i = 0 ; i < arrPrimeraDivisio.size() ; i++){
			splitted = arrPrimeraDivisio.get(i).split("-");
			arrFinal.add(splitted);
		}
		
		return arrFinal;
	}
}
